#ifndef __JL5104_H__
#define __JL5104_H__

#include "port.h"

extern void jl5104_strap_pin_init(void);
extern void jl5104_reset(void);

extern int jl5104_load_config(void);

extern void get_jl5104_config(void);
extern int set_jl5104(void);

typedef struct
{
	jl_port_speed_t speed;
	jl_port_duplex_t duplex;
	jl_port_link_status_t linkst;
}JL5104_LINK_STATUS_DEF;

typedef struct
{
	JL5104_LINK_STATUS_DEF port0;
	JL5104_LINK_STATUS_DEF port1;
	JL5104_LINK_STATUS_DEF port2;
	jl_port_phy_ability_t port0_phy;
	jl_port_phy_ability_t port1_phy;
	jl_port_phy_ability_t port2_phy;
	jl_port_ext_mac_ability_t port3_mac;
}JL5104_SET_DEF;


#endif
